package com.android.djlmapp.adapter.order;

import android.content.Context;
import android.widget.ImageView;

import com.android.djlmapp.R;
import com.android.djlmapp.model.order.OrderListInfo;
import com.bumptech.glide.Glide;

import org.refresh_view.pullrecyclerview.BaseViewHolder;

/**
 * @Author wangziheng
 * @ProjectName djlm
 * @ClassName TerminalOrderListAdapter
 * @package com.android.djlmapp.adapter.order
 * @data 2018/12/12 12:33
 * @Describe  终端订单
 * @Change
 */
public class TerminalOrderListAdapter extends OrderListAdapter{

    public TerminalOrderListAdapter(Context context) {
        super(context);
    }

    @Override
    protected void convert(BaseViewHolder holder, OrderListInfo.DataBean item) {
        super.convert(holder, item);
        holder.setText(R.id.order_list_orderName_tv,item.getModel());
        holder.setText(R.id.order_list_orderPrice_tv,"¥:  " + item.getExpress_price());
        ImageView terminalImg = holder.itemView.findViewById(R.id.order_list_goodsIcon_img);
        Glide.with(terminalImg).load(item.getImage()).into(terminalImg);
    }
}
